-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add aws_identitystore_groups data source #31681
Add aws_identitystore_groups data source #31681
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Hi @liath, thanks for your work here! 🙂 We are also interested in having a datasource that can list all groups in the identity center, so I appreciate that you opened this PR! ✨ |
Was hoping for feedback from Hashicorp on how to proceed with the tests. I'll move it out of drafts if that's what needs to happen to get that. |
…roups-data-source
…roups-data-source
Is there any chance this PR gets merged? |
Supposedly you can get Hashicorp to pay attention to PRs if you're a paying customer but we aren't lol, if you are then please send this to your account rep :) |
@bschaatsbergen Could we by any chance collaborate on this one or find a way to get this moving? I don't mind migrating this to the latest and greatest versions of framework and all, but it's now in "no man's land" |
Hey @aristosvo, cc @liath - I would be happy to help work on this PR with you two - we should begin by upgrading the code to the new plugin framework. If that's done, I can do the last couple things around tests and sign-off on the PR from my side. How would you like to proceed collaborating? |
If @liath is okay with it and allows me, I'd like to push a new version with the plugin framework to this or a new PR. I have to figure out the framework a bit too as well, but that would already be a great start. If there is a way to open up a Slack chat that would be awesome, but last time I applied for the Slack channel nothing happened 😇 |
No worries here, take any of my PRs on this project lol |
Hi @liath! I've taken this PR and migrated the code to framework, would you prefer me to open up a different PR or do you prefer to give me push permissions on your branch? Rebased version of it all can be found here: https://github.com/aristosvo/terraform-provider-aws/tree/f-aws_identitystore_groups-data-source |
I have no idea how to do that but either way lol |
Created a new PR covering this, this one can be closed 🎉 |
Closing in favor of continuing with #36993 - thanks for picking this up @aristosvo and thanks for making sure that @liath's commits are part of it. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Adds a data source for listing all groups in an Identity Store instance. Part of a few PRs to cover #26770.
The acceptance test is weird and I'd appreciate guidance on what to do there. The issue is that Identity Store instances are account wide so we can't guarantee there's only one group in the results or the order of the results. As far as I could find there isn't a way to say in the AttrPair checks "check these nested fields in any item of this list and compare those to these attributes on this other resource". So we're left with doing that in a custom test function.
Of course, server-side filter would likely help here but aws-sdk says that functionality is deprecated. :(
Relations
Relates #26770
References
https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_ListGroups.html
Wrt to server-side filtering being deprecated in the SDK:
https://github.com/aws/aws-sdk-go-v2/blob/service/identitystore/v1.16.11/service/identitystore/api_op_ListGroups.go#L46
Output from Acceptance Testing